import request from "../../utils/request"

export function initStu(page) {
  return request({
    url: '/student/get/'+page,
    method: 'get'
  })
}

export function addStu(student) {
  return request({
    url: '/student/add',
    method: 'post',
    data: student
  })
}

export function updateStu(student) {
  return request({
    url: '/student/update',
    method: 'post',
    data: student
  })
}

export function delStu(id) {
  return request({
    url: '/student/del/'+id,
    method: 'delete'
  })
}

